package com.gusha.dao;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.gusha.model.ReplyComm;
import com.gusha.model.TrainComm;

@Repository
public interface ReplyCommDao extends JpaRepository<ReplyComm,BigInteger>,JpaSpecificationExecutor<ReplyComm>{
	@Query(value="select r from ReplyComm r where r.trainComm=?1")
	List<ReplyComm> findAllByTrainComm(TrainComm trainComm);

	
}
